package ClassesAndObejdctes;

import java.sql.SQLOutput;

public class UserTest {
    public static void main(String[] args) {
        //创建对象
        User user1 = new User("Yusc","12345","@qq.com","男",18);

        //调用属性
        System.out.println(user1.getUserName());
        System.out.println(user1.getPassWord());
        System.out.println(user1.getEmail());
        System.out.println(user1.getGender());
        System.out.println(user1.getAge());

        System.out.println("==================");
        // 属性值修改
        user1.setUserName("ysc");
        System.out.println("修改userName后："+user1.getUserName());
    }

}
